export function getChildren(meta, vm) {
  let ctls = meta.controls || [];
  let childs = ctls.filter(x => {
    if (vm == null) {
      return true;
    } else {
      if(x.name == "control_22") {
        debugger;
      }
      return vm.getState(x);
    }
  });
  return childs;
}

export function getHeight(meta, defaultHeight) {
  if (!meta.heigth || meta.heigth == "*") {
    return defaultHeight;
  } else {
    return meta.heigth + "px";
  }
}